import { Column, Entity, PrimaryGeneratedColumn } from "typeorm"

@Entity({ name: "email" })
export class EmailEntity {
  // index
  @PrimaryGeneratedColumn({ type: "int" })
  id: number

  // SMTP server hostname
  @Column({ type: "varchar" })
  host: string

  // SMTP server port
  @Column({ type: "int" })
  port: number

  // SMTP server username
  @Column({ type: "varchar" })
  user: string

  // SMTP server password
  @Column({ type: "varchar" })
  pass: string
}
